Repository navigation
feat(spec)!: a view no longer declares itself personal — scope 'personal' and sharing.type retire - #29447
Conversation
`scope: 'personal'` leaves ViewScopeSchema (enumWithRetiredValues) and `sharing.type` leaves ViewSharingSchema (retiredKey tombstone, the released `collaborative` default accepted as residue). Nothing ever restricted a view to one user, so a view marked personal was listed for everyone under a badge that said otherwise. ADR-0087 kit: D2 `view-personal-declarations-removed`, D3 `ui-view-personal-declarations-retired`, retired key `ui/ViewSharing:type`. The console list toolbar draws only the lock from `sharing.lockedBy`; the legacy visibility fold writes no type. Claude-Session: https://claude.ai/code/session_01ADHkmTHDhPHuivpyvN8gfF Co-authored-by: Claude <noreply@anthropic.com>
…aration retirement; changeset Claude-Session: https://claude.ai/code/session_01ADHkmTHDhPHuivpyvN8gfF Co-authored-by: Claude <noreply@anthropic.com>
…n order; read union-door issues through invalid_union Claude-Session: https://claude.ai/code/session_01ADHkmTHDhPHuivpyvN8gfF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmTHDhPHuivpyvN8gfF Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): ⛔ 1 release-owned page(s) name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 168 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b05c3ad60190f47bdc32d0357a0ea67208779d4a && git checkout b05c3ad60190f47bdc32d0357a0ea67208779d4a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a644163669cc57d6d1471008caad6099f1f49413 92ac574df7221a069c1a7047e0c29b1c008d69a5 && git checkout -B drift-repro a644163669cc57d6d1471008caad6099f1f49413 && git merge --no-ff 92ac574df7221a069c1a7047e0c29b1c008d69a5
node scripts/docs-audit/affected-docs.mjs --json a644163669cc57d6d1471008caad6099f1f49413
|
|
domain:spec#1 · os-steve · session_01ADHkmPi25XXKx92Xmg4viS Head-sha: 维护者速读
席位意见:可落地,等契约复审。 席位核对 — ACCEPT ·
|
|
domain:spec#1 · os-steve · session_01ADHkmPi25XXKx92Xmg4viS Contract-review-claim: session_01ADHkmPi25XXKx92Xmg4viS · head 92ac574 · 2026-11-02T16:20Z |
|
domain:spec#1 · os-steve · session_01ADHkmPi25XXKx92Xmg4viS Contract reviewServed-tier: Inputs read: card #29037 (body, triage 6571434336, seat claim 6578962562, dev report 6582129886, claim amendment 6582177714), the ruling of record 6570568131 on #28971 (letter C, 「同意」), the PR body, its file list, ① Derived judgmentsThe accept-set narrowing —
Nothing refused beyond ruling C and the card. The D2 conversion covers every shape the narrowing newly refuses. Newly refused stored shapes are (a) ② Semver level
③ Boundary flags
④ Design judgment
No must-fix found. The retirement is complete on every door, every stored shape converts, the declaration is consistent and at the right level, and the surface breach is exactly what the retirement forces. Implemented-by: VERDICT: PASS |
…12 ADR-0019 D3 amendment; the marketplace design doc and the audience page drop the suite fold (objectstack-ai#33455) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XRDknyaA6oa7MrKZVWEcnFa)_ Fixes objectstack-ai#32664 domain:skills#1 · os-project-manager · session_01FEkQ5omJjY7zqYeR48ExxC Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:ADR-0130 D2(两处)、其 Non-goals 与备选 5、ADR-0141 的 Unchanged 行,各加一条带日期的⚠️ 指向,点名 2026-11-12 对 ADR-0019 D3 的修订与 `958734cbac`,原裁决句一字不删;设计文档 `marketplace-publishing.md` 与公开文档页 `audience-based-interfaces.mdx` 的「套件折叠成一个应用」句改写为修订后的规则。 - 为什么改:ADR-0019 D3 已按「改成 Salesforce 模式」修订(一个套件可呈现多个应用,每个应用由不同包定义,应用包至多一个应用),但 ADR-0130/0141 仍写「D1–D3 原文不变」,设计文档与文档页仍教「一个应用、永不套件」;人或 AI 搜 D3 会落到旧读法。 - 风险与回滚:纯文档,4 个文件 +88/−20,不动代码、schema、技能;回滚即还原本 PR。 - 先看:`docs/adr/0130-release-artifact-as-co-ownership-boundary.md` D2 下两条指向(:211、:235);`docs/design/marketplace-publishing.md` §6 新增的 Shape C 与改写的「Not allowed」框;`content/docs/ui/audience-based-interfaces.mdx` 第 22 行。 - 两分钟验证:`git diff origin/main -- docs/adr/`,预期只见新增的⚠️ 指向行,无任何删除行。 - 需要你做的:受管面 Tier H(`docs/adr/**`):请批准或合并。 ## What changes Four files, +88 / −20. The amended rule is quoted, not paraphrased, from ADR-0019 D3's amendment note on `main` (`ba35dfd7`): "A suite (one install: an app package plus the module packages it composes) MAY surface more than one app, provided each app is defined by a different package of the suite, and an app package defines at most one app." - **`docs/adr/0130-release-artifact-as-co-ownership-boundary.md`** (+26 / −0, no ruled sentence touched). - D2, after "D1–D3 stand verbatim and unamended": a dated pointer naming the amendment, objectstack-ai#32585 and `958734cbac`, quoting the rule, and saying D1 and D2 are not amended; of "installs, opens, uninstalls" only "opens" reads differently (ADR-0019's note under D1). - D2, after the ⛔ line: a pointer quoting ADR-0019's own "Records that restate D3" note: the line "stands as drawn", "What ADR-0130 calls a suite is a container a consumer browses or installs, and that stays removed", and the "exactly one consumer-visible consequence" "gains a second: a module the app package brought may surface an app of its own." - Non-goals, "Not a suite": a pointer saying which "suite" the line excludes, since the amended D3 uses the word for one install of an app package with its modules. - Alternative 5, "ADR-0019 D3 by another name": a pointer saying the fold is reversed and the rejection stands on what the amendment keeps: D1, D2, and a suite "is no second consumer unit. It has no listing and no package type of its own." - **`docs/adr/0141-inter-app-dependency-declared-checked-before-install.md`** (+8 / −0): a pointer after the **Unchanged** line, whose consumer-model item is kept as the reading of 2026-10-25. - **`docs/design/marketplace-publishing.md`** (+53 / −19): a new dated `Updated:` header line (the 2026-05-31 line kept); §1's HotCRM paragraph rewritten from "being refolded into a single consumer App" to the suite it ships as (hotcrm `main` at `ac4dd3d`: sales in the app package, service and marketing in their module packages); §2.1's taxonomy line; §6's lead rewritten to the amended rule, "(recommended for HotCRM)" dropped from Shape A, a new **6.3 Shape C** (a suite through `composeStacks(..., { manifest: 'preserve' })`), and the "Not allowed" box rewritten to one package surfacing N apps plus a suite as a second consumer unit, naming `STACK_SINGLE_APP_VIOLATION` for `type: app` and `type: module`; Summary item 5. - **`content/docs/ui/audience-based-interfaces.mdx`** (+1 / −1): "More audiences therefore never mean more apps" becomes per package, a `type: 'module'` package is held to one app too (`packages/spec/src/stack.zod.ts#SINGLE_APP_PACKAGE_TYPES`, `app` and `module`), and a suite may surface more than one app, each defined by a different package. The "See also" line ("one app per package") still holds and is unchanged. ## Acceptance notes - **Nothing already landed.** Commits on each file since `958734cbac` (GitHub REST, `commits?path=`): ADR-0130's last is PR objectstack-ai#32846 (`2d52e297d3`), which dated only the §1.5 `validateSingleApp` row; ADR-0141's last is objectstack-ai#31415 (2026-11-08); the design doc's last is objectstack-ai#18838 (2026-09-17); the docs page's last is objectstack-ai#29447 (2026-11-02). None carries these pointers. - **Left as written, still true:** ADR-0130's TL;DR "does not move a single letter (D2)" (its D2 now carries the pointer) and References "(unamended by this record)"; ADR-0141 D6 "ADR-0019 keeps its text verbatim" and its Cross-references line (both describe ADR-0141's own act); ADR-0141 Context's "the standalone module is therefore an App in its own right" (the shelved cross-artifact consumer). - **Same family, outside this card's surface, noted only:** the header comment of `packages/spec/src/kernel/package-registry.zod.ts` says "a consumer package defines at most one app — there is no 'suite contains apps' aggregator", and the design doc's §2.2 quotes it. Read per package it still holds (no package of a suite defines more than one app), so it is not a defect; a wording pass is the spec lane's to pick up. - The design doc's Shape A example still uses HotCRM-style ids as an illustration; only its "recommended for HotCRM" heading was dropped. ## Verification <details><summary>Derived gates on head 8bfdf6e (48 of 48 exit 0)</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 48 commands; each ran with its exit captured before any pipe. The nine package-filter gates were rerun after `turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react...` under the lock (VERDICT command-exit 0); the first pass of `check:skill-examples`, taken before that build, answered exit 3 (prerequisite not built) and is superseded by the rerun below. `--ran`: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED". Control-byte self-scan of the four files: no hit. ``` node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-doc-route-spelling.mjs --advisory :: exit 0 node scripts/check-doc-route-spelling.mjs --self-test :: exit 0 node scripts/check-docs-section-name.mjs :: exit 0 node scripts/check-docs-section-name.mjs --self-test :: exit 0 node scripts/check-section-landing-index.mjs :: exit 0 node scripts/check-section-landing-index.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:adr-index :: exit 0 pnpm check:adr-symbol-anchors :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:corpus-claim-drift :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-anchors :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:doc-frontmatter :: exit 0 pnpm check:docs-audit-scope :: exit 0 pnpm check:docs-redirects :: exit 0 pnpm check:docs-single-h1 :: exit 0 pnpm check:docs-spec-enumerations :: exit 0 pnpm check:docs-transcript-drift :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:published-readme-links :: exit 0 pnpm check:react-page-adapter-contract :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:role-word :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:vendor-version-stamps :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0 pnpm --filter @objectstack/spec run check:docs :: exit 0 pnpm --filter @objectstack/spec run check:empty-state :: exit 0 pnpm --filter @objectstack/spec run check:liveness :: exit 0 pnpm --filter @objectstack/spec run check:skill-examples :: exit 0 pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0 pnpm --filter @objectstack/spec run check:variant-docs :: exit 0 pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0 ``` </details> <details><summary>Tier and governed-merge verdicts</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier for `docs/adr/**` (no one-line exit). This card thread ran on the claim's default tier; named as a deviation in the report, and the seat's in-seat contract review at tier is the owed record. - `check-governed-merges.mjs --branch claude/project-thread-58mkv4`: exit 3, GOVERNED, landing tier H (人合), `docs/adr/** ×2`; `content/docs/ui/audience-based-interfaces.mdx` and `docs/design/marketplace-publishing.md` are not on the register; 108 changed lines, under the 3000 threshold. - Changeset: `skip-changeset` (`docs/adr/**`, `docs/design/**` and `content/docs/**` ship in no package's `files[]`). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5omJjY7zqYeR48ExxC)_ <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Fixes #29037
Clause-②: no (narrowing)
Metadata-protocol: narrowed
维护者速读
scope: 'personal'和列表视图的sharing.type都被拒收并给出改法;控制台列表工具栏不再显示"个人视图 / 共享视图"标签,只保留"由谁锁定"。collaborative照收并丢弃,所以现有视图不用改就能加载;回滚就是 revert 本 PR。packages/spec/src/ui/view.zod.ts(两处退役与改法文案)和packages/spec/src/conversions/registry.ts的personalViewDeclarationsRemoved转换。pnpm --filter @objectstack/spec exec vitest run --project repo src/ui/view-personal-declarations-retirement.test.ts,看personal两处被拒、collaborative被丢弃、转换后的行能通过。collaborative残留是照收丢弃还是一起拒收(默认按 feat(spec): retired-defaulted-key tolerance — the retired default parses as inert residue and strips; non-default values keep the loud refusal (#12497 class rule) #12840 惯例照收丢弃)。What changes
Per ADR-0049 enforce-or-remove and ADR-0087, the two inert
personaldeclarations retire.view.scope: 'personal'is refused byenumWithRetiredValueswith a prescription at every door that reads a view item'sscope:ViewItemSchema, the wire schema, theViewMetadataSchemarecord and overlay arms, andAssembledViewArtifactSchema.packageandsharedare unchanged.view.list.sharing.typeretires as a whole key with aretiredKeytombstone, not just itspersonalvalue. Oncepersonalgoes,collaborativeis the only value left, and the only reader was the console badge. A measuredgit grepover packages/ and ui/ finds no server, runtime or service reader.lockedBystays.type: 'collaborative', which a released toolchain wrote into every parsedsharingblock, is accepted and stripped throughacceptRetiredDefaultResidue(house rule feat(spec): retired-defaulted-key tolerance — the retired default parses as inert residue and strips; non-default values keep the loud refusal (#12497 class rule) #12840).type: 'personal'is refused.view-personal-declarations-removed(identifierpersonalViewDeclarationsRemoved,retiredFromLoadPath: true,retiredAfter: '18.2.0') serves stored-row rehydration, assembled artifacts andos migrate meta. It stripsscope: 'personal'fromviews/viewItemsrows, andsharing.typefrom list payloads, list view item configs, flattened list overlays andobjects[].listViews.*. Route: it deletes the declaration and does not inventshared, because nothing a reader sees changes.ui-view-personal-declarations-retiredcarries the part a migration cannot decide (keep the view as everyone-visible, delete it, or wait for user-owned personal views). One ADR-0087 marker sits in the changeset. There is also aRETIRED_KEYS_BY_MAJORentryui/ViewSharing:typeand a STEP18 rationale fragment.ui/packages/plugin-list/src/ListView.tsx: the personal/shared badge is gone, and a view withsharing.lockedBystill shows "Locked by …" (data-testid="sharing-locked-by").ui/packages/core/src/utils/normalize-list-view.ts: drops the legacysharing: { visibility, enabled }pair instead of folding it onto the retiredtype.list.sharingPersonal/list.sharingCollaborativeare removed from all 10 locales.content/docs/ui/audience-based-interfaces.mdxnow says per-user list preferences instead of personal views. The liveness rowview.json#list.sharingis re-cited to the lock reader.authorable-surface/ui.json,authorable-defaults/ui.json, andcontent/docs/references/{api/protocol,data/object,ui/view}.mdx.Forced test edits
These are existing tests that pinned the retired values, and each one changes only its fixture:
packages/spec/src/ui/view.test.ts: theViewSharingSchemadescribe was rewritten (an empty block parses to{}, and the lock is accepted). Three list-view literals change fromsharing.typetosharing.lockedBy.packages/spec/src/ui/view-item-owner-hidden-retirement.test.ts: the bystander row'sscope: 'personal'changes to'shared'. The owner/hidden conversion fixture inconversions/registry.tsgets the same edit.packages/spec/src/ui/view-overlay-viewkind-arm.test.ts:{ sharing: { lockedBy: 'admin' } }.packages/metadata-protocol/src/protocol.graft-folded-form-sections.test.ts:{ sharing: { lockedBy: 'admin' } }.ui/packages/plugin-list/src/__tests__/ListView.test.tsx: the sharing tests were rewritten aroundsharing-locked-by.ui/packages/plugin-list/src/__tests__/ListViewBlock.inertKeys-13074.test.tsxandListViewBlock.specInputs-13047.test.tsx: they mount{ sharing: { lockedBy: 'admin' } }and assertsharing-locked-by.ui/packages/core/src/utils/__tests__/normalize-list-view.test.ts: the legacy pair is dropped, and notypeis written.ui/packages/plugin-view/src/__tests__/ObjectView.namedViewProtocolKeys-8980.test.tsx:lockedByvalues.ui/packages/types/src/__tests__/p1-spec-alignment.test.ts:{ lockedBy }only.ui/apps/console/src/__tests__/registry-inputs-spec-parity.test.ts: thelist-view.sharingreason prose.New test file:
packages/spec/src/ui/view-personal-declarations-retirement.test.ts. It covers every door,defineStack422, the type-level pins, the D2 conversion and the D3 entry, plus a tree-scoped absence walk.Generated by Claude Code